package marchsoft.modules.selfFish.pisciculture.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import marchsoft.modules.selfFish.pisciculture.entity.Health;
import marchsoft.modules.selfFish.pisciculture.entity.vo.HealthVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.cache.annotation.CacheConfig;

/** 健康管理
 * @title HealthMapper
 * @description 健康管理
 * @author Lenovo
 * @version 1.0
 * @create 2024-07-15 17:02
 */
@Mapper
@CacheConfig(cacheNames = "health")
public interface HealthMapper extends BaseMapper<Health> {

    /** 查询
     * @param fishName: 🐟的名称
     * @param page: 分页对象
     * @return IPage<HealthVo> 分页数据
     * @description:  获取健康列表
     */
    IPage<HealthVo> getHealthList(Page page, @Param("fishName") String fishName);
}
